#ifndef GAME_PAGE_H
#define GAME_PAGE_H

#include "FoodManager.h"
#include "Snake.h"
#include <memory>

// 声明全局变量
extern unique_ptr<FoodManager> foodManager;
extern unique_ptr<Snake> gameSnake;
extern Container *Game_Page;
extern Container *Joystick;
extern Container *Joystick_center;
extern Container *Menu_Btn;
extern Container *Refresh_Btn;
extern Container *Menu_Page;
extern Container *Cancle_Btn;
extern Container *ReStart_Btn;
extern Container *Back_Btn;

extern Container *Layout_Page;

extern Container *Game_Over_Page;

// 声明函数
void create_Game_Page();

void create_Menu_Page();

void create_Layout_Page();

void create_Game_Over_Page();

void gameStart();

void reStart();

void Joystick_touch();

void Display_Main_Page();

void Display_Game_Page();

void Display_Menu_Page();

void Display_Layout_Page();

void Display_Game_Over_Page();


#endif